<?php

/**
 * Description of ListarPuertos
 *
 * @author JeyDotC
 * 
 * @export Modules
 * @export-metadata RequiredRoles:Agencia
 */
class ListarPuertos extends Module {

    private $puertosPerPage = 25;


    public function index() {
        $idPais = $this->request->get("idPais");
        $pagina = $this->request->get("page", 0);
        
        echo $this->components->Puertos->getByPaisRaw($idPais, $pagina * $this->puertosPerPage, $this->puertosPerPage);
    }

}

?>
